package ar.com.personalTravellers.services.impl;

import ar.com.personalTravellers.beans.Country;
import ar.com.personalTravellers.daos.CountryDAO;
import ar.com.personalTravellers.services.CountryService;
import com.angel.arquitectura.service.impl.GenericServiceImpl;
import org.apache.log4j.Logger;

public class CountryServiceImpl extends GenericServiceImpl implements CountryService {

    private static Logger LOGGER = Logger.getLogger(CountryServiceImpl.class);

    protected CountryDAO getCountryDAO(){
        return (CountryDAO) super.getGenericDAO();
    }

    public Country findUniqueByName(String countryName) {
        return this.getCountryDAO().findUniqueByName(countryName);
    }
}